package com.platform.qujia.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * @date 2023/12/21
 */
public enum ShipmentStatus implements IEnum<Integer> {
    NOT_SHIP(0,"未发货"),
    SHIPPED(1,"已发货"),
    SHIP_FAIL(2,"发货失败"),
    RECOVERED(4,"已回退"),
    ;

    @JsonValue
    private final Integer code;
    private final String desc;

    ShipmentStatus(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    @Override
    public Integer getValue() {
        return code;
    }
}
